package com.holyant.report.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;
import java.util.Objects;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RptSaleRealTimeSummaryDto implements Comparable<RptSaleRealTimeSummaryDto> {
    private Integer orderStatus;
    private Integer cbOrders;
    private Integer wmOrders;
    private Map<String, Integer> cbSummary;
    private Map<String, Integer> wmSummary;

    @Override
    public int compareTo(RptSaleRealTimeSummaryDto o) {
        return Objects.compare(orderStatus, o.orderStatus, Integer::compareTo);
    }
}
